<h2><?php echo($category['name']); ?> - Artykuły</h2>
<?php
foreach($articles as $article) {
   $articleLink = "/articles/".$article['Article']['id']."/".slug($article['Article']['title']);
   echo("<h2>".$article['Article']['title']."</h2><span class=\"article-info\">Autor: ".$article['User']['username'].", <a href=\"".$articleLink."#comments\">Skomentuj (".count($article['ArticleComment']).") &raquo;</a></span>");
   echo("<p>".shorten("<!--more-->", $article['Article']['content'], "... <a href=\"".$articleLink."\">Czytaj dalej...</a>", "")."</p>");
}
?>